package com.ticket.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ticket.common.annotation.Excel;
import com.ticket.common.core.domain.BaseEntity;

/**
 * 充值活动规则对象 yanchu_recharge_rules
 * 
 * @author ruoyi
 * @date 2023-12-07
 */
@ApiModel(description = "充值活动规则对象")
public class YanchuRechargeRules extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键")
    private Long id;

    /** 充值金额 */
    @ApiModelProperty(value = "充值金额")
    @Excel(name = "充值金额")
    private BigDecimal recAmount;

    /** 赠送金额 */
    @ApiModelProperty(value = "赠送金额")
    @Excel(name = "赠送金额")
    private BigDecimal preAmount;

    /** 排序值越小越靠前 */
    @ApiModelProperty(value = "排序值越小越靠前")
    @Excel(name = "排序值越小越靠前")
    private Integer orderNum;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRecAmount(BigDecimal recAmount)
    {
        this.recAmount = recAmount;
    }

    public BigDecimal getRecAmount()
    {
        return recAmount;
    }
    public void setPreAmount(BigDecimal preAmount)
    {
        this.preAmount = preAmount;
    }

    public BigDecimal getPreAmount()
    {
        return preAmount;
    }
    public void setOrderNum(Integer orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() 
    {
        return orderNum;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("recAmount", getRecAmount())
            .append("preAmount", getPreAmount())
            .append("orderNum", getOrderNum())
            .append("creatTime", getCreatTime())
            .toString();
    }
}
